package cn.hanyx.coder.design.pattern.structural.bridge.demo02.handler;

import cn.hanyx.coder.design.pattern.structural.bridge.demo02.notify.Notification02;
import cn.hanyx.coder.design.pattern.structural.bridge.info.AlertRule;
import cn.hanyx.coder.design.pattern.structural.bridge.info.ApiStatInfo;

public abstract class AlertHandler {
    protected AlertRule rule;
    protected Notification02 notification;

    public AlertHandler(AlertRule rule, Notification02 notification) {
        this.rule = rule;
        this.notification = notification;
    }

    public abstract void check(ApiStatInfo apiStatInfo);
}